import request from '@/utils/request'

// 查询充值规则列表
export function listCharging_scheme(query) {
  return request({
    url: '/system/charging_scheme/list',
    method: 'get',
    params: query
  })
}

// 查询充值规则详细
export function getCharging_scheme(rechargeSchemeId) {
  return request({
    url: '/system/charging_scheme/' + rechargeSchemeId,
    method: 'get'
  })
}

// 新增充值规则
export function addCharging_scheme(data) {
  return request({
    url: '/system/charging_scheme',
    method: 'post',
    data: data
  })
}

// 修改充值规则
export function updateCharging_scheme(data) {
  return request({
    url: '/system/charging_scheme',
    method: 'put',
    data: data
  })
}

// 删除充值规则
export function delCharging_scheme(rechargeSchemeId) {
  return request({
    url: '/system/charging_scheme/' + rechargeSchemeId,
    method: 'delete'
  })
}
